How to put text into richtext dialog box element?

I plan to code a function (in a respective dialog) with preview of the modifidations made to an object's text. Therefore I included a richtext dialog box element, which should offer the preview. Right now I have everything ready: the richtext dialog box is shown in the dialog and I have a string, which I would like to put into it.

But how can I put text into a richtext dialog box element after it has been generated?

Sorry, if this is a trivial question, I am very new to DXL, but up to now I've found no way how to do it.

You help is very much appreciated.

Best wishes,
Tom.
SystemAdmin - Tue Mar 24 07:57:40 EDT 2009

Re: How to put text into richtext dialog box element?
SystemAdmin - Tue Mar 24 09:29:53 EDT 2009

In DXL Help look for set-function:

set (value or selection)
Declaration
void set(DBE element,
{string|int|bool} value)
void set(DBE currDBE, Buffer b)

Operation
The first form sets either the value of an element or the status of the selected element as follows

The second form sets the content of the specified DBE to be the content of the Buffer.:

Re: How to put text into richtext dialog box element?
Tony_Goodman - Tue Mar 24 09:34:05 EDT 2009

It is very simple, but not necessarily easy to find in the help.

The following perms can be found in the help under "Common element operations".

void set(DBE element,
{string|int|bool} value)
void set(DBE currDBE, Buffer b)

Re: How to put text into richtext dialog box element?
SystemAdmin - Tue Mar 24 10:36:01 EDT 2009

Thank you for your valuable help!!!

Re: How to put text into richtext dialog box element?
Lion29 - Thu Aug 27 13:18:39 EDT 2009

SystemAdmin - Tue Mar 24 10:36:01 EDT 2009
Thank you for your valuable help!!!

by this function only one string can be printed in the text box.. :-)
is there any way by which i can fetch the data from the output window(assume that i've printed some list of strings in the output window) and put that in the rich text box??

Re: How to put text into richtext dialog box element?
llandale - Thu Aug 27 17:37:07 EDT 2009

Lion29 - Thu Aug 27 13:18:39 EDT 2009
by this function only one string can be printed in the text box.. :-)
is there any way by which i can fetch the data from the output window(assume that i've printed some list of strings in the output window) and put that in the rich text box??

Look for the 'get(DBE)' function.

Perhaps:
string Additional = "More stuff to append to the DBE"
string Current = get(dbeMyText)
if (null Current) //-
then set(dbeMyText, Additional)
else set(dbeMyText, Current "\n" Additional)

'set' and 'get' behave differently, sometimes drasically, depending on the type of DBE. When you find the set or get, look carefully in the table until you find the type of DBE you are working with.

  • Louie